#ifndef TRMDRIGHTBAR_H
#define TRMDRIGHTBAR_H

#include <QLabel>
#include <QWidget>
#include <QHeaderView>
#include <QTableWidget>
#include "include/TrManager.h"
#include "include/TrService.h"
#include "include/TrMdGridBase.h"

class CTrMdRightBar : public CTrMdGridBase, public CTrReceiver
{
    Q_OBJECT
public:
    CTrMdRightBar();
    virtual ~CTrMdRightBar() override;

    QVector<QLabel*>    m_pLabel;
    QVector<CThostFtdcDepthMarketDataField> m_pDepthMarketData;
protected:
    virtual void paintEvent(QPaintEvent* event) override;
    virtual void OnReceiveData(Tr_ResponseID rId, void* wParam, void* lParam) override;
    void    drawBaseText(QPainter* painter);
    void    OnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);
    QString tradeDetails(int volume, double open, double last, double ask);
    QTableWidget*  m_pList;
signals:

public slots:
};

#endif // TRMDRIGHTBAR_H
